package com.dx.financehy.http;

/**
 * <pre>
 * @描述： http请求常量
 * @作者：CLD
 * @创建时间：2020-10-18 00:21
 * </pre>
 **/
public class HttpConstants {

    /**
     * 连接池最大连接数
     */
    static int MAX_TOTAL_POOL = 256;

    /**
     * 每路连接最多连接数
     */
    static int MAX_CONPERROUTE = 32;

    /**
     * socket超时时间
     */
    static int SOCKET_TIMEOUT = 60 * 1000;

    /**
     * 连接请求超时时间
     */
    static int CONNECTION_REQUEST_TIMEOUT = 5 * 1000;

    /**
     * 连接超时时间
     */
    static int CONNECT_TIMEOUT = 5 * 1000;

    /**
     * http协议
     */
    static String HTTP_PROTOCOL = "http";

    /**
     * https协议
     */
    static String HTTPS_PROTOCOL = "https";

    /**
     * sslv3
     */
    static String SSL_CONTEXT = "SSLv1.2";

    /**
     * utf-8编码
     */
    static String CHARSET_UTF_8 = "UTF-8";

    /**
     * application/json
     */
    static String CONTENT_TYPE_JSON = "application/json";

    /**
     * application/x-www-form-urlencoded
     */
    static String CONTENT_TYPE_FORM = " application/x-www-form-urlencoded";

    /**
     * content-type
     */
    static String CONTENT_TYPE = "Content-Type";

    /**
     * text/xml
     */
    public static String CONTENT_TYPE_XML = "text/xml";
}
